/**
 */
package com.dingpeikeji.quickdeer.core.modules.viewspot.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 景点管理Entity
 * @author lh
 * @version 2016-05-31
 */
public class SysViewspot extends DataEntity<SysViewspot> {
	
	private static final long serialVersionUID = 1L;
	private String spotid;		// 景点编号
	private String spotname;		// 景点名称
	private String citycode;		// 城市编号
	private String spottype;		// 景点类型
	private String querycode;		// 检索码
	private Date createTime;		// 创建时间
	private String cityName; // 城市名称
	
	public SysViewspot() {
		super();
	}

	public SysViewspot(String id){
		super(id);
	}

	public String getSpotid() {
		return spotid;
	}

	public void setSpotid(String spotid) {
		this.spotid = spotid;
	}
	
	@Length(min=1, max=100, message="景点名称长度必须介于 1 和 100 之间")
	public String getSpotname() {
		return spotname;
	}

	public void setSpotname(String spotname) {
		this.spotname = spotname;
	}
	
	@Length(min=1, max=10, message="城市编号长度必须介于 1 和 10 之间")
	public String getCitycode() {
		return citycode;
	}

	public void setCitycode(String citycode) {
		this.citycode = citycode;
	}
	
	@Length(min=1, max=1, message="景点类型长度必须介于 1 和 1 之间")
	public String getSpottype() {
		return spottype;
	}

	public void setSpottype(String spottype) {
		this.spottype = spottype;
	}
	
	@Length(min=0, max=64, message="检索码长度必须介于 0 和 64 之间")
	public String getQuerycode() {
		return querycode;
	}

	public void setQuerycode(String querycode) {
		this.querycode = querycode;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	
}
